package com.wollo.mapper;

import com.wollo.domain.Check;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDate;
import java.util.List;

/**
 * @author 栾钰凇
 * Date  2024/9/14 18:22
 */
@Mapper
public interface StudentCheckMapper {
    @Select("insert into check_work.t_check (uid,checktime,checkstatus,checkresult) values(#{uid},#{checktime},#{checkstatus},#{checkresult})")
    void addCheckInfo(Check check);

    List<Check> getAllCheckInfo(@Param("uid") Integer uid, @Param("beginTime") LocalDate beginTime, @Param("endTime") LocalDate endTime);
}
